﻿
using System.Web.Mvc;

namespace MvcWesbNews.Areas
{
    public class AdminAreaRegistration:AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "Admin";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
             context.MapRoute(
             "Admin_default",
             "Admin/{controller}/{action}/{id}",
             new { Controller = "Home", action = "Index", id = UrlParameter.Optional },
             new[] { "MvcWesbNews.Areas.Admin.Controllers" }
         );
        }
    }
}